package com.mairuide.platroleuser;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.mairuide._frame.base.BaseModel;

/**
 * 平台角色用户中间表类
 * @author mh
 *
 */
@Entity
@Table(name="tb_plat_role_user")
public class PlatRoleUser extends BaseModel {

    @Id
    @Column(name = "id")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "plat_role_user")
	@SequenceGenerator(name = "plat_role_user", sequenceName = "SEQ_PLAT_ROLE_USER",allocationSize=1)
    private Integer id;
    
    @Column(name = "role_id")
    private Integer roleId;

    @Column(name = "user_id")
    private Integer userId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
    
}
